import '../style/index.css'
import '../style/h2.less'
import YJ from '../image/R-C.jpeg'

export function buildCssModel(){
    const divElem = document.createElement('div')

    divElem.textContent='hello'
    
    divElem.classList.add('content')
    
    const h2Elem = document.createElement('h2')
    h2Elem.textContent='h2 content'
    h2Elem.classList.add('h2')
    document.body.append(divElem,h2Elem)
}


export function buildImgModel(){
    const imgElem = document.createElement('img')
    const divElem = document.createElement('div')
    divElem.classList.add('bg')
    imgElem.src=YJ
    document.body.append(imgElem,divElem)
}